#include "redcurls.h"

// Loader
extern "C"
void
load_module ()
{
  dInitCurl ();
  addToSystem ("", 
}

dCurlObject::dCurlObject ()
{
  type = 'z';
  typeStr = "CURL_OBJECT";
}

dCurlObject::~dCurlObject ()
{
  if (object)
    curl_easy_cleanup (object);
}

string
dCurlObject::toString ()
{
  return typeStr;
}

void
dInitCurl ()
{
  curl_global_init (CURL_GLOBAL_ALL);
}

dObject *
dCurlVersion (dList *args)
{
  return new dString (curl_version ());
}

dObject *
dNewCurl (dList *args)
{
}

dObject *
dDelCurl (dList *args)
{
}

dObject *
dSetOption (dList *args)
{
}

dObject *
dExecute (dList *args)
{
}
